build: Make the default setting work on non-Linux Unix-like systems
authorTing-Wei Lan <lantw@src.gnome.org>
Sun, 22 Apr 2018 12:47:32 +0000 (20:47 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Sun, 22 Apr 2018 13:57:10 +0000 (21:57 +0800)
commitf922109a9c684d1fb852b041eccbeb4781b7039a
tree49b49be29780a0a3d71f48fed297154883e1f886
parent7a09cd4cdaff9c5643ad0e3e212cb2acb8ba9fde
build: Make the default setting work on non-Linux Unix-like systems

All of the four platform-dependent backends are enabled by default. It
is usually a good default because it requires users to explicitly choose
backends they want to use. Rules in meson.build also automatically
disable unavailable backends for macOS, Windows, Linux, so users on
these 3 major platforms don't have to manually disable things when
running meson commands.

However, meson.build doesn't do the same thing for other Unix-like
systems, which is acceptable but not ideal. To make it easier to build
GTK+ on these systems, the Linux case, which enables X11 and Wayland and
disables Win32 and Quartz, is made the default for all operating systems
that are not Windows or macOS.

This commit also changes most 'host_machine.system()' calls to os_*
variables, which are easier to read and less likely to be used wrongly.
meson.build
meson_options.txt
tests/meson.build